//
//  WTCoreDataManager.h
//  CoreDataContact
//
//  Created by 王婷 on 15/11/21.
//  Copyright © 2015年 王婷. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@interface WTCoreDataManager : NSObject


@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

+ (WTCoreDataManager *)shareDefaults;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;

@end
